Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Memory leak - Detached HTML elements #715

Merged
merged 7 commits into from
May 19, 2019
Merged

Conversation

jf-m
Copy link
Contributor

@jf-m jf-m commented Apr 26, 2019

A proposed solution for the issue #713

This solution adds a more complete cleaning routine to the unset method in order to remove all detached elements.

Also contains a little compatibility fix for the test.sh script that was not working on my MacOs (Mojave 10.14.4).

Cheers !

@jf-m
Copy link
Contributor Author

jf-m commented Apr 26, 2019

I've added the fix for the auto-scroll detached element (#713 (comment))

Copy link
Owner

@taye taye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the unset signal name, can you add a test to packages/interact/interact.spec.ts to check that Interactable.unset() and Interaction.destroy() work correctly?

packages/core/scope.ts Outdated Show resolved Hide resolved
@taye
Copy link
Owner

taye commented May 10, 2019 via email

@@ -30,7 +30,7 @@ test('Interaction constructor', (t) => {

for (const coordField in interaction.coords) {
t.deepEqual(interaction.coords[coordField], zeroCoords,
`nteraction.coords.${coordField} set to zero`)
`interaction.coords.${coordField} set to zero`)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :D

@taye taye changed the base branch from next to master May 15, 2019 12:47
@taye taye changed the base branch from master to next May 15, 2019 12:48
@taye taye changed the base branch from next to master May 18, 2019 04:02
@taye taye self-requested a review May 18, 2019 04:11
@taye taye merged commit 3612708 into taye:master May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants